package com.ruyuan.eshop.diplomacy.converter;


import com.ruyuan.eshop.diplomacy.domain.bo.FrontCategoryBO;
import com.ruyuan.eshop.diplomacy.domain.bo.FrontCategoryRelationBO;
import com.ruyuan.eshop.diplomacy.domain.bo.SkuInfoBO;
import com.ruyuan.eshop.diplomacy.domain.dto.FrontCategoryDTO;
import com.ruyuan.eshop.diplomacy.domain.entity.FrontCategoryDO;
import com.ruyuan.eshop.diplomacy.domain.entity.FrontCategoryRelationDO;
import org.mapstruct.Mapper;

import java.util.Collection;
import java.util.List;

/**
 * 前端类目相关对象克隆
 * @author zhonghuashishan
 * @version 1.0
 */
@Mapper(componentModel = "spring")
public interface FrontCategoryConverter {
    /**
     *  集合对象克隆
     * @param frontCategoryBOList
     * @return
     */
    List<FrontCategoryDTO> converterFrontCategoryList( List<FrontCategoryBO> frontCategoryBOList );

    /**
     *  集合对象克隆
     * @param frontCategoryBOList
     * @return
     */
    List<FrontCategoryBO> converterFrontCategoryList( Collection<FrontCategoryDO> frontCategoryBOList );

    /**
     * 集合对象克隆
     * @param doList
     * @return
     */
    List<FrontCategoryRelationBO> convertCategoryRelation(Collection<FrontCategoryRelationDO> doList);

    /**
     * 集合对象克隆
     * @param skuInfoBOS
     * @return
     */
    List<Object> converterObjectList(List<SkuInfoBO> skuInfoBOS);
}
